{% extends "basic/layout.html" %}

{% block htmltitle %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    {{ super() }}
{% endblock %}

{% set css_files = css_files + [
    '_static/bootstrap-4.6.2-dist/css/bootstrap.min.css',
    '_static/sphinxbootstrap4.css'
] %}

{% set script_files = script_files + [
  '_static/jquery-3.7.1.min.js',
    '_static/bootstrap-4.6.2-dist/js/bootstrap.min.js',
    '_static/sphinxbootstrap4.js'
  ]
%}

{%- macro sphinxsidebar() %}
      {%- if render_sidebar %}
      <div class="sphinxsidebar d-none d-md-block">
        <div class="sphinxsidebarwrapper">
          {%- block sidebarlogo %}{%- endblock %}
          {%- if sidebars != None %}
            {#- new style sidebar: explicitly include/exclude templates #}
            {%- for sidebartemplate in sidebars %}
            {%- include sidebartemplate %}
            {%- endfor %}
          {%- else %}
            {#- old style sidebars: using blocks -- should be deprecated #}
            {%- block sidebartoc %}
            {%- include "globaltoc.html" %}
            {%- endblock %}
            {%- block sidebarrel %}
            {%- include "relations.html" %}
            {%- endblock %}
            {%- if customsidebar %}
            {%- include customsidebar %}
            {%- endif %}
            {%- block sidebarsearch %}
            {%- include "searchbox.html" %}
            {%- endblock %}
            {%- block sidebarsourcelink %}
            {%- include "sourcelink.html" %}
            {%- endblock %}
          {%- endif %}
        </div>
      </div>
      {%- endif %}
{%- endmacro %}

{% macro navBar() %}
{% include "navbar.html" %}
{% endmacro %}

{% macro breadcrumb() %}
{% include "breadcrumb.html" %}
{% endmacro %}

{%- block relbar1 %}{% endblock %}
{%- block relbar2 %}{% endblock %}

{%- block header %}{{ navBar() }}{%- endblock %}


{%- block footer %}
{% include "footer.html" %}
{%- endblock %}

{%- block content %}
  {%- block breadcrumb1 %}{{breadcrumb()}}{% endblock %}
  <div class="main container-fluid">
    <div class="row">
      {%- block sidebar1 %} {% if theme_show_sidebar|tobool and not theme_sidebar_right|tobool %}{{ sphinxsidebar() }}{% endif %} {% endblock %}

      <div class="document">
      {%- block document %}
      <div class="documentwrapper">
      {%- if render_sidebar %}
        <div class="bodywrapper">
      {%- endif %}
          <div class="body">
            {% block body %} {% endblock %}
          </div>
      {%- if render_sidebar %}
        </div>
      {%- endif %}
      </div>
  {%- endblock %}
    </div>
    {%- block sidebar2 %}{% if theme_show_sidebar|tobool and theme_sidebar_right|tobool %}{{ sphinxsidebar() }}{% endif %}{% endblock %}
      <div class="clearer"></div>
      </div>
    </div>
{%- endblock %}
